#!/usr/bin/python
# -*- coding: UTF-8 -*-
# @author:qiaofinn
# @file:filters.py
# @time:2020/09/28


import django_filters

from .models import Comment


class CommentFilter(django_filters.FilterSet):
    article = django_filters.CharFilter(field_name='article')

    class Meta:
        model = Comment
        fields = '__all__'
